package com.farm.web.service;

import com.farm.entity.PageResult;
import com.farm.web.pojo.CustUser;
import org.springframework.data.domain.PageRequest;

import java.util.Map;

public interface CustUserService {
    //添加用户
    void addUser(CustUser custUser,Integer []roleIds);

    //修改用户密码
    void updatepassword(CustUser custUser,String newPassword);

    //逻辑删除用户
    void deleteUser(Integer id);

    //查询一个用户
    CustUser findUser(String username);

    //重置密码
    void resetPassword(String username);

    //登录
    boolean login(CustUser custUser);

    PageResult findAll(String customer_id, Map<String, String> map, int page, int size);
}
